package com.loong.experiment02.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
@Profile("prod")
public class ProdMyConfig {
    @Bean
    public MyComponent myComponent() {
        MyComponent component = new MyComponent();
        component.setName("prod");
        return component;
    }
}